/* I2C servo controller   grytole@gmail.com   12-Nov-2013 */

#include <avr/interrupt.h>
#include "servo.h"
#include "i2c.h"

#define DEVICE_ADDRESS (0x18)

int main(void)
{
    servoInit();

    i2cInit(DEVICE_ADDRESS);

    servoSetPosition(0, 0);
    servoSetPosition(1, 0);
    servoSetPosition(2, 0);

    i2cBindSlot(0, servoGetDataPtr(0), 2);
    i2cBindSlot(1, servoGetDataPtr(1), 2);
    i2cBindSlot(2, servoGetDataPtr(2), 2);

    sei();

    for(;;){}
}

/* eof */